<template>
	<view>
		<view class="navigation-bar">
			<view @click="turnBack"><image src="/static/左箭头.png"></image></view><text>核销记录</text>
		</view>
		<view class="background"></view>
		<view class="search-container">
			<input class="search" placeholder="输入需要搜索的内容" />
			<view class="search-icon-right">
				<image src="/static/搜索@3x.png" class="search-icon" />
			</view>
		</view>
		<view class="card">
			<view class="type">
				普通洗车，机油，工时
			</view>
			<view class="name">
				下单用户:张三
			</view>
			<view class="money">
				实付金额:￥32.00
			</view>
			<view class="time">
				核销时间:2022-10-12<text>11.09</text>
			</view>
		</view>
		<view class="card">
			<view class="type">
				普通洗车，机油，工时
			</view>
			<view class="name">
				下单用户:张三
			</view>
			<view class="money">
				实付金额:￥32.00
			</view>
			<view class="time">
				核销时间:2022-10-12<text>11.09</text>
			</view>
		</view>
		<view class="card">
			<view class="type">
				普通洗车，机油，工时
			</view>
			<view class="name">
				下单用户:张三
			</view>
			<view class="money">
				实付金额:￥32.00
			</view>
			<view class="time">
				核销时间:2022-10-12<text>11.09</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			turnBack() {
				uni.navigateBack({
					url: "/pages/index/index"
				})
			}
		}
	}
</script>

<style>
	.navigation-bar {
		position: relative;
		height: 150rpx;
		display: flex;
		align-items: center;
		background-color: #287BF6;
	}

	.navigation-bar>view>image {
		width: 30rpx;
		height: 30rpx;
		margin-left: 30rpx;
	}
	
	.navigation-bar>text {
		color: #FFF;
		margin-right: 40rpx;
		flex-grow: 1;
		text-align: center;
	}

	.background {
		position: absolute;
		background-color: #287BF6;
		width: 100%;
		height: 300rpx;
		z-index: 0;
	}

	.search-container {
		position: relative;
		background-color: #287BF6;
		padding-bottom: 20rpx;
	}

	.search {
		height: 60rpx;
		display: flex;
		align-items: center;
		border: none;
		/* 去掉边框 */
		background-color: #fff;
		/* 设置背景颜色为白色 */
		border-radius: 20px;
		/* 设置圆角，让搜索框边缘变圆 */
		padding: 5px 20px;
		margin: 0 30rpx;
	}

	.search-icon-right {
		position: absolute;
		right: 10px;
		top: 50%;
		transform: translateY(-50%);
	}

	.search-icon {
		width: 15px;
		height: 15px;
		margin-right: 50rpx;
	}

	.card {
		position: relative;
		margin: 20rpx;
		background-color: #FFF;
		border-radius: 10px;
	}

	.type {
		margin: 0 20rpx;
		padding-top: 25rpx;
		padding-bottom: 10rpx;
		border-bottom: 10rpx solid #F7F7F7;
		font-weight: bold;
		font-size: 30rpx;
	}

	.name {
		margin: 20rpx;
	}

	.money {
		margin: 0 20rpx;
	}

	.time {
		margin: 20rpx;
		padding-bottom: 20rpx;
		color: #B0B0B0;
	}

	.time>text {
		margin-left: 20rpx;
	}
</style>